package com.foundersoftware.commons.organization;

import com.foundersoftware.commons.organization.model.AbstractOrganizationObject;

public class ObjectAlreadyExistsException extends PersistenceException {
    /**
	 * Object UID
	 */
	private static final long serialVersionUID = -4059354430323178862L;

	public ObjectAlreadyExistsException(String message) {
        super(message);
    }

    public ObjectAlreadyExistsException(AbstractOrganizationObject absOrgObj) {
        super("Unable to store " + absOrgObj.getClass().getName() + "with id " + absOrgObj.getId()
                +",because one already exsits with this identification.");
    }
}
